import Ax from './api';

export default {
  getMetaName: (query = {}) => Ax.get(`/device/metadata?deviceType=${query.deviceType}&manufacturer=${query.manufacturer}`),
  alarmMetaAdd: (param = {}) => Ax.put(`/alarmMetadata/add`, param),
  alarmMetaEdit: (param = {}) => Ax.put(`/alarmMetadata/edit`, param),
  alarmMetaDelete: (query = {}) => Ax.delete(`/alarmMetadata/delete?_id=${query._id}`),
  alarmMetaList: (param = {}) => Ax.post(`/alarmMetadata/list`, param),
  alarmMetadata: (param = {}) => Ax.post(`/alarmMetadata/import`, param),
  alarmMetaExport: (param = {}) => Ax.post(`/alarmMetadata/export`, param),
  
}